package work.MrSun.xyq.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import work.MrSun.xyq.model.XyqMessage;
import work.MrSun.xyq.service.XyqMessageDetailService;

/**
 * @Author MrSun
 * @Date 2023/4/9 21:11
 */

/**
 * 失物招领所有的控制层
 */
@RestController
public class LostMessageController {
    @Autowired
    private XyqMessageDetailService xyqMessageDetailService;

    /**
     * 获取失物招领
     */
    @PostMapping("/getMessage/getLostMessage")
    public XyqMessage getLostMessage() {
        return xyqMessageDetailService.getLostMessage();
    }
}
